package main

import (
	"fmt"
	"net/http"
	"os"
)

var urls []string = []string{
	"http://baidu.com",
	"http://cn.bing.com",
	"http://sogou.com",
}

func main() {
	for _, url := range urls {
		resp, err := http.Head(url)
		if err != nil {
			fmt.Fprintf(os.Stderr, "Error: %v", err)
		}
		fmt.Println(url, ":", resp.Status)
	}
}
